import 'babel-polyfill';
import Vue from 'vue'
// import VueNotifications from 'vue-notifications'

// Vue.use(VueNotifications)

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 英文版视频播放器
import VuePlyr from 'vue-plyr'
import 'vue-plyr/dist/vue-plyr.css';
Vue.use(VuePlyr)


import Cookies from 'js-cookie'
import axios from 'axios'
axios.interceptors.request.use(
    config => {
        config.headers.token = Cookies.get('token');
        return config;
    },
    err => {
        return Promise.reject(err);
});

// promise兼容
import promise from 'es6-promise'
promise.polyfill()



